﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;

namespace USMCdotNET
{
    sealed class Pause:IPauseElement
    {
        int time;
        bool atprocess  = false;
        bool accomplished = false;

        public Pause(int t)
        {
            time = t;
        }

        public int Time
        {
            get { return time; }
            set { time = value; }
        }
        public bool AtProcess { get{return atprocess;} }
        public bool Accomplished { get { return accomplished; } }

        public void Move()
        {
            atprocess = true;
            Thread.Sleep(time);
            atprocess = false;
            accomplished = true;
        }
    }
}
